package histogram;

import javax.swing.JTextArea;

public class GlobLogger {

	private static JTextArea textArea = null;
	
	public static void log(String mes){
		System.out.println(mes);
		if (textArea != null){
			textArea.append(mes + " \n");
		}
	}
	
	public static void  setTextArea(JTextArea text){
		textArea = text;
	}
	
}
